package main;

public class Launcher {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Worker worker = new Worker("Sve", 2);
		
		((Observable) worker).addObserver(new Observer() {
			
			@Override
			public void update(Object arg) {
				System.out.println("***********"  + arg + "**************" );				
			}
		});
		
		worker.setSalary(3);
		worker.work();
	}

}
